﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="addNews2.ascx.cs" Inherits="addNews" %>
<%@ Register TagPrefix="spaw" Namespace="Solmetra.Spaw2" Assembly="Solmetra.Spaw2" %>


<table cellpadding="5" cellspacing="5">
<tr height="20px">
    <td colspan="2"><strong>Добавить новость:</strong><td>
</tr>
<tr>
    <td>Заголовок:</td>
    <td>
        <asp:TextBox ID="newsTitle" ValidationGroup="mainValid" runat="server" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Надо заполнить поле" ValidationGroup="mainValid" ControlToValidate="newsTitle" Display="Dynamic" />
    </td>
    <td>
</tr>
<tr>
    <td>Превью изображение:</td>
    <td>
        <asp:FileUpload ID="fu_Img" runat="server" />
    </td>
    <td>
</tr>
<tr>
    <td>Тело новости:</td>
    <td>
        <spaw:Editor ID="spaw_Description" Width="99%" runat="server"/> 
    </td>
    <td>
</tr>
<tr>
    <td></td>
    <td><asp:Button ID="btAdd" OnClick="Add" Text="Добавить" CssClass="btn" ValidationGroup="mainValid" runat="server" /></td>
</tr>
</table>
